package org.csu.myblogger.myblogger.commom;

import lombok.Getter;

@Getter
public enum ResponseCode {
    //通用状态码
    SUCCESS(0,"success"),
    ERROR(1,"ERROR"),
    NEED_LOGIN(2,"NEED_LOGIN"),
    ILLEAGL_ARGUMENT(3,"ILLEAGL_ARGUMENT");

    @Getter
    private final  int code;
    private final String description;
    ResponseCode(int code,String description){
        this.code=code;
        this.description=description;
    }

    public int getCcode(){
        return code;
    }
    public String getDescription(){
        return description;
    }
}
